//       https://www.nowcoder.com/practice/adf828f399de4932955734a4eac12757





#include <iostream>
using namespace std;

bool fun(string num)
{
    int sum = 0;
    for (char c : num)
        sum += c - '0';
    int n = num.size();
    for (int k = 0; k < (1 << n); k++)
    {
        int yes_sum = 0;
        for (int i = 0; i < n; i++)
            if (k & (1 << i))
                yes_sum += num[i] - '0';
        int no_sum = sum - yes_sum;
        if (yes_sum == no_sum)
            return true;
    }
    return false;
}

int main()
{
    string s;
    cin >> s;
    if (fun(s))
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
    return 0;
}